<?php

/**
* Contract Class
*/
class Contract extends AppModel
{
	var $name = 'Contract';
	
	var $hasMany = array('ContractIntervention' =>
	                         array('className'     => 'ContractIntervention',
	                               'conditions'    => '',
	                               'order'         => '',
	                               'limit'         => '',
	                               'foreignKey'    => 'contract_id',
	                               'dependent'     => true,
	                               'exclusive'     => false,
	                               'finderQuery'   => ''
	                         ),
						'ContractProfil' =>
	                         array('className'     => 'ContractProfil',
	                               'conditions'    => '',
	                               'order'         => '',
	                               'limit'         => '',
	                               'foreignKey'    => 'contract_id',
	                               'dependent'     => true,
	                               'exclusive'     => false,
	                               'finderQuery'   => ''
	                         )	 
	                  );
	var $validate = array(
	  'ref' => VALID_NOT_EMPTY,
	  'company_id' => VALID_NOT_EMPTY,
	  'tjm' => VALID_NUMBER
	);	
}


?>